

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<link type="text/css" rel="stylesheet" href="${createLinkTo(dir:'css/csslxh',file:'lxh.css')}">
	<title>Edit Orginfo</title>
</head>

<style>
	.tableGray td { height:26px } 
</style>

<body style="margin:0; overflow:auto">

<table width="100%" height="23" border="0" cellpadding="0" cellspacing="0" background="${createLinkTo(dir:'imagesmain',file:'grayListBg.gif')}">
  <tr>       
	<td width="50%" style="padding-top:2px;padding-left:10px;padding-right:15px" nowrap>
		<img src="${createLinkTo(dir:'imageslxh',file:'post.gif')}">
		<g:message code="lxh.func.edit"/><g:message code="lxh.display.detailName"/>
	</td>
	<td>&nbsp;</td>		
  </tr>  
</table>

<g:if test="${flash.message}">
	<div class="message">${flash.message}</div>
</g:if>

<g:hasErrors bean="${orginfoInstance}">
	<div class="errors">
		<g:renderErrors bean="${orginfoInstance}" as="list" />
	</div>
</g:hasErrors>

<g:form action="update" method="post" style="display:inline" >
	<input type="hidden" name="id" value="${orginfoInstance?.id}" />
	<input type="hidden" name="version" value="${orginfoInstance?.version}" />
	
	<table align="center" class="tableGray" cellpadding="0" cellspacing="1" style="margin-top:5px;">
	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="orgname"><g:message code="Orginfo.orgname"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:orginfoInstance,field:'orgname','errors')}">
	        	<input type="text" maxlength="50" id="orgname" name="orgname" value="${fieldValue(bean:orginfoInstance,field:'orgname')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="memo"><g:message code="Orginfo.memo"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:orginfoInstance,field:'memo','errors')}">
	        	<input type="text" maxlength="100" id="memo" name="memo" value="${fieldValue(bean:orginfoInstance,field:'memo')}" class="textccc" />
	        </td>
	    </tr> 
	    	
	    <tr>
	    	<td width="40%" align="right" bgcolor="#f6f6f6">
	        	<label for="userinfo"><g:message code="Orginfo.userinfo"/>:&nbsp;</label>
	        </td>
	        <td class="value ${hasErrors(bean:orginfoInstance,field:'userinfo','errors')}">
	        	
<ul>
<g:each var="u" in="${orginfoInstance?.userinfo?}">
    <li><g:link controller="userinfo" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></li>
</g:each>
</ul>
<g:link controller="userinfo" params="['orginfo.id':orginfoInstance?.id]" action="create">Add Userinfo</g:link>

	        </td>
	    </tr> 
	    	
	            

	    <tr>
	    	<td align="center"  colspan="2" style="height:30">
	    		<input type="submit" value="<g:message code='lxh.btn.update'/>" class="btnGray">&nbsp;
	    		<input type="button" value="<g:message code='lxh.btn.cancel'/>" class="btnGray" onclick="history.back()">
	    	</td>
	    </tr>
	    
	</table>
	
</g:form>

                  

</body>
</html>
